<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>SetEntityAttribute</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">SetEntityAttribute()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#006666"><b>SetEntityAttribute</b></font>(#Entity, Attribute, Value)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Set the specified attribute value to the given entity. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Entity</i></td>
<td width="90%"> 
 
The entity to use. 

 

</td></tr>
<tr><td><i>Attribute</i></td>
<td> 
 
The attribute to set. 

 

</td></tr>
<tr><td><i>Value</i></td>
<td> 
 
Value of the attribute to set. The following attributes are available: 
 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Entity_Friction</font>        : Change the friction value.
  <font color="#924B72">#PB_Entity_Restitution</font>     : Change the restitution value.
  <font color="#924B72">#PB_Entity_MinVelocity</font>     : Set the minimum linear velocity of the entity. As this value isn't stored,
                                it needs to be called every time the entity is moved.
  <font color="#924B72">#PB_Entity_MaxVelocity</font>     : Set the maximum linear velocity of the entity. As this value isn't stored,
                                it needs to be called every time the entity is moved.
  <font color="#924B72">#PB_Entity_ForceVelocity</font>   : Set the linear velocity of the entity. As this value isn't stored,
                                it needs to be called every time the entity is moved.
  <font color="#924B72">#PB_Entity_LinearSleeping</font>  : Change the minimum linear velocity value under which the entity will be sleeping.
  <font color="#924B72">#PB_Entity_AngularSleeping</font> : Change the minimum angular velocity value under which the entity will be sleeping.
  <font color="#924B72">#PB_Entity_DeactivationTime</font>: Time to wait (in milliseconds) before putting the entity in sleep mode when the above conditions are met.
</font></pre>

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>参阅</b></p><blockquote>

<a href="getentityattribute.html">GetEntityAttribute()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=scaleentity.html>ScaleEntity()</a> - <a href=index.html>Entity Index</a> - <a href=setentitycollisionfilter.html>SetEntityCollisionFilter()</a> -&gt;



</body></html>